# -*- coding: utf-8 -*-
from django.conf.urls import url
from .views import HomeView, ListView, TopView, FavoriteView
from django.views.decorators.cache import cache_page

urlpatterns = [
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^list$', ListView.as_view(), name='list'),
    url(r'^top$', TopView.as_view(), name='top'),
    url(r'^favorite$', FavoriteView.as_view(), name='favorite'),
    
    # url(r'^item/(?P<slug>[-\w@.]+)/$', cache_page(60 * 60)
    #     (ItemView.as_view()), name='item'),
    # url(r'^demo/$', DemoView.as_view(), name='demo'),
]
